package cn.org.xuanguang.kepler.hormos.orm.tenant;

import cn.org.xuanguang.kepler.hormos.rdb.entity.GenericEntity;
import cn.org.xuanguang.kepler.hormos.rdb.jpa.Column;
import cn.org.xuanguang.kepler.hormos.rdb.jpa.GeneratedValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;


/**
 * 租户支持
 *
 * @author jarod
 * @since 4.0
 */
@Getter
@Setter
public class GenericTenantEntity<PK, T> extends GenericEntity<PK> {
    /**
     * 租户id
     */
    @Column(columnName = "TENANT_ID", columnLength = 64)
    @GeneratedValue(generator = "default_id")
    @Schema(description = "tenant_id")
    private T tenantId;

}
